package app;

import wsi.depend.DependencyController;
import wsi.script.AppConfig;
import wsi.script.AppXml;
import wsi.ws.WebServices;

public class depend extends App {

	public static void main(String[] args) {
		init();

		if (args.length > 0)
			run(args[0]);
		else
			run(AppXml.DEFAULT_FILE);

		bye();
	}

	private static void run(String fileName) {
		AppConfig.init(fileName);

		DependencyController detector;

		for (WebServices service : WebServices.values()) {
			if (service != WebServices.musixmatch)
				continue;

			if (service == WebServices.triler_addict)
				continue;

			detector = new DependencyController(service);
			detector.compute();
		}
	}
}
